package com.macro.mall.tiny.modules.bms.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 广告位置表
 */
@Getter
@Setter
@TableName("common_advert_position")
@Schema(description = "AdvertPosition对象 - 广告位置表")
public class AdvertPosition implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "广告位位置描述")
    private String name;

    @Schema(description = "前台标题")
    private String title;

    @Schema(description = "广告位尺寸【json：{\"pc\":{\"width\":1,\"height\":2},\"m\":{\"width\":1,\"height\":2}}】")
    private String sizeInfo;

    @Schema(description = "状态【1-启用，2-停用】")
    private Integer status;

    @Schema(description = "创建时间", example = "2025-11-21 01:52:34")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间", example = "2025-11-21 01:52:34")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;

    @Schema(description = "软删除：0-正常，1-已删除")
    @TableField(updateStrategy = FieldStrategy.NOT_NULL)
    private Integer delFlag;


}